package com.yq.homework.day30.udp1;

import java.net.DatagramSocket;
import java.net.SocketException;

/**
 * @author 3307235355@qq.com
 * @description
 * @since 2022/06/30 20:10
 */
public class SendWorker {
    public static void main(String[] args) throws SocketException {
        DatagramSocket socket = new DatagramSocket(8888);
        // new Thread(new SendInfo(socket,"127.0.0.1",9999)).start();
        // 53
        new Thread(new SendInfo(socket,"192.168.13.31",9999)).start();
        new Thread(new ReceiveInfo(socket)).start();

    }
}
